
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import VueCookies from 'vue3-cookies'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { zhCn } from 'element-plus/es/locale/index.mjs'
// @ts-ignore
import App from './App.vue'
import router from './router'
import axios from "axios";
const app = createApp(App)


axios.defaults.baseURL = 'http://localhost:8080/'

app.use(createPinia())
app.use(router)
app.use(ElementPlus,{
    locale: zhCn
})
app.config.globalProperties.$cookies = VueCookies
app.mount('#app')


// 状态变量
// 功能函数
// 增加
// 删除
// 修改
// 获取
// 生命周期函数
// 常量
// 用户变量